<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Vue模块化</title>

    <style>
        .list{
            display: flex;
            justify-content: flex-start;
        }
        .list  div{
            margin: 20px;
            width: 20%;
        }
    </style>
    <script src="index.js"></script>
</head>
<body>
<!--装备好一个容器-->
<div id="root">
    <div class="list">
        <div><button onclick="localStorageObj.setItem('yushi','hello')">localStorge.setItem</button></div>
        <div><button onclick="localStorageObj.getItem('yushi')">localStorge.getItem</button></div>
        <div><button onclick="localStorageObj.removeItem('yushi')">localStorge.removeItem</button></div>
        <div><button onclick="localStorageObj.clear()">localStorge.clear</button></div>
    </div>

    <div class="list">
        <div><button onclick="sessionStorageObj.setItem('yushi','hello')">sessionStorage.setItem</button></div>
        <div><button onclick="sessionStorageObj.getItem('yushi')">sessionStorage.getItem</button></div>
        <div><button onclick="sessionStorageObj.removeItem('yushi')">sessionStorage.removeItem</button></div>
        <div><button onclick="sessionStorageObj.clear()">sessionStorage.clear</button></div>
    </div>

</div>
</body>
</html>
